<!doctype html>
<html>
<head>
<?php $this->load->view('admin/common_head'); ?>
</head>
<body class="body_none" style="width:408px;">
<form id="J_link_add_form" class="J_ajaxForm" data-role="list" action="<?php echo site_url('admin/link/do_add'); ?>" method="post" accept-charset="utf-8">
	<div class="pop_cont pop_table" style="height:auto;">
		<table width="100%">
			<tr>
				<th>链接分类</th>
				<td><span class="must_red">*</span>
					<ul class="three_list cc">
						<li><label><input type="checkbox" checked="checked" value="newhouse" name="types[]" /><span>新房</span></label></li>
						<li><label><input type="checkbox" checked="checked" value="secondhouse" name="types[]" /><span>二手</span></label></li>
					</ul>
				</td>
			</tr>
			<tr>
				<th>站点名称</th>
				<td>
					<span class="must_red">*</span>
					<input type="text" name="name" value="" class="input length_5" />
					<p class="gray">友情链接显示的名称(不超15字)</p>
				</td>
			</tr>
			<tr>
				<th>站点地址</th>
				<td>
					<span class="must_red">*</span>
					<input type="text" name="url" value="" class="input length_5" />
					<p class="gray">站点域名 例如：http://www.baidu.com</p>
				</td>
			</tr>
			<tr>
				<th>站点LOGO</th>
				<td>
					<input type="text" name="logo" value="" class="input length_5" />
					<p class="gray">图片地址，尺寸(88x31像素)，设置后自动为图片链接</p>
				</td>
			</tr>
			<tr>
				<th>联系方式</th>
				<td>
					<input type="text" name="contact" value="" class="input length_5" />
					<p class="gray">例如：某先生 18812345678</p>
				</td>
			</tr>
			<tr>
				<th>显示顺序</th>
				<td><input type="text" name="vieworder" value="" class="input length_5" /></td>
			</tr>
		</table>
	</div>
	<div class="pop_bottom">
		<button class="btn fr" id="J_dialog_close" type="button">取消</button>
		<button type="submit" class="btn btn_submit J_ajax_submit_btn fr mr10">提交</button>
	</div>
</form>
<?php $this->load->view('admin/common_footer'); ?>
<script type="text/javascript">
/*
Wind.use('ajaxForm', function () {
	var submit_tips = $('#J_submit_tips');
	$('#J_link_add_form').ajaxForm({
		dataType	: 'json',
		success     : function(data){
			submit_tips.text(data.message[0]).slideDown('fast');
				if (data.state === 'success') {
					setTimeout(function(){
						window.parent.location.href = window.parent.location.pathname + window.parent.location.search;
						window.parent.Wind.dialog.closeAll();
				}, 1500);
			}
		}
	});
});
*/
</script>
</body>
</html>